    $(document).ready(function (){
		var l6 =0;
		var m6 =0;
		var x6 =0;
		var j6 =0;
		var v6 =0;
		var s6 =0;
		var d6 =0;
		var l7 =0;
		var m7 =0;
		var x7 =0;
		var j7 =0;
		var v7 =0;
		var s7 =0;
		var d7 =0;
		var l8 =0;
		var m8 =0;
		var x8 =0;
		var j8 =0;
		var v8 =0;
		var s8 =0;
		var d8 =0;
		var l9 =0;
		var m9 =0;
		var x9 =0;
		var j9 =0;
		var v9 =0;
		var s9 =0;
		var d9 =0;
		var l10 =0;
		var m10 =0;
		var x10 =0;
		var j10 =0;
		var v10 =0;
		var s10 =0;
		var d10 =0;
		var l11 =0;
		var m11 =0;
		var x11 =0;
		var j11 =0;
		var v11 =0;
		var s11 =0;
		var d11 =0;
		var l12 =0;
		var m12 =0;
		var x12 =0;
		var j12 =0;
		var v12 =0;
		var s12 =0;
		var d12 =0;
		var l13 =0;
		var m13 =0;
		var x13 =0;
		var j13 =0;
		var v13 =0;
		var s13 =0;
		var d13 =0;
		var l14 =0;
		var m14 =0;
		var x14 =0;
		var j14 =0;
		var v14 =0;
		var s14 =0;
		var d14 =0;
		var l15 =0;
		var m15 =0;
		var x15 =0;
		var j15 =0;
		var v15 =0;
		var s15 =0;
		var d15 =0;
		var l16 =0;
		var m16 =0;
		var x16 =0;
		var j16 =0;
		var v16 =0;
		var s16 =0;
		var d16 =0;
		var l17 =0;
		var m17 =0;
		var x17 =0;
		var j17 =0;
		var v17 =0;
		var s17 =0;
		var d17 =0;
		var l18 =0;
		var m18 =0;
		var x18 =0;
		var j18 =0;
		var v18 =0;
		var s18 =0;
		var d18 =0;
		var l19 =0;
		var m19 =0;
		var x19 =0;
		var j19 =0;
		var v19 =0;
		var s19 =0;
		var d19 =0;
		var l20 =0;
		var m20 =0;
		var x20 =0;
		var j20 =0;
		var v20 =0;
		var s20 =0;
		var d20 =0;
		var l21 =0;
		var m21 =0;
		var x21 =0;
		var j21 =0;
		var v21 =0;
		var s21 =0;
		var d21 =0;
		var l22 =0;
		var m22 =0;
		var x22 =0;
		var j22 =0;
		var v22 =0;
		var s22 =0;
		var d22 =0;
		$("td").addClass("boton");
		$("#l6").toggle(function (){
            $("#l6").css({ color: "#FFFFFF", background: "#00ff00" });
				l6 = 1;
			},
			function(){
			$("#l6").css({ color: "#000", background: "#999999"});
				l6 = 0;
			}); 
		$("#m6").toggle(function (){
            $("#m6").css({ color: "#FFFFFF", background: "#00FF00" });
				m6 = 1;
			},
			function(){
			$("#m6").css({ color: "#000", background: "#999999"});
				m6 = 0;
			}); 
		$("#x6").toggle(function (){
            $("#x6").css({ color: "#FFFFFF", background: "#00FF00" });
				x6 = 1;
			},
			function(){
			$("#x6").css({ color: "#000", background: "#999999"});
				x6 = 0;
			}); 
		$("#j6").toggle(function (){
            $("#j6").css({ color: "#FFFFFF", background: "#00FF00" });
				j6 = 1;
			},
			function(){
			$("#j6").css({ color: "#000", background: "#999999"});
				j6 = 0;
			}); 
		$("#v6").toggle(function (){
            $("#v6").css({ color: "#FFFFFF", background: "#00FF00" });
				v6 = 1;
			},
			function(){
			$("#v6").css({ color: "#000", background: "#999999"});
				v6 = 0;
			});
		$("#s6").toggle(function (){
            $("#s6").css({ color: "#FFFFFF", background: "#00FF00" });
				s6 = 1;
			},
			function(){
			$("#s6").css({ color: "#000", background: "#999999"});
				s6 = 0;
			});
		$("#d6").toggle(function (){
            $("#d6").css({ color: "#FFFFFF", background: "#00FF00" });
				d6 = 1;
			},
			function(){
			$("#d6").css({ color: "#000", background: "#999999"});
				d6 = 0;
			});



		$("#l7").toggle(function (){
            $("#l7").css({ color: "#FFFFFF", background: "#00FF00" });
				l7 = 1;
			},
			function(){
			$("#l7").css({ color: "#000", background: "#999999"});
				l7 = 0;
			}); 
		$("#m7").toggle(function (){
            $("#m7").css({ color: "#FFFFFF", background: "#00FF00" });
				m7 = 1;
			},
			function(){
			$("#m7").css({ color: "#000", background: "#999999"});
				m7 = 0;
			}); 
		$("#x7").toggle(function (){
            $("#x7").css({ color: "#FFFFFF", background: "#00FF00" });
				x7 = 1;
			},
			function(){
			$("#x7").css({ color: "#000", background: "#999999"});
				x7 = 0;
			}); 
		$("#j7").toggle(function (){
            $("#j7").css({ color: "#FFFFFF", background: "#00FF00" });
				j7 = 1;
			},
			function(){
			$("#j7").css({ color: "#000", background: "#999999"});
				j7 = 0;
			}); 
		$("#v7").toggle(function (){
            $("#v7").css({ color: "#FFFFFF", background: "#00FF00" });
				v7 = 1;
			},
			function(){
			$("#v7").css({ color: "#000", background: "#999999"});
				v7 = 0;
			});
		$("#s7").toggle(function (){
            $("#s7").css({ color: "#FFFFFF", background: "#00FF00" });
				s7 = 1;
			},
			function(){
			$("#s7").css({ color: "#000", background: "#999999"});
				s7 = 0;
			});
		$("#d7").toggle(function (){
            $("#d7").css({ color: "#FFFFFF", background: "#00FF00" });
				d7 = 1;
			},
			function(){
			$("#d7").css({ color: "#000", background: "#999999"});
				d7 = 0;
			});



		$("#l8").toggle(function (){
            $("#l8").css({ color: "#FFFFFF", background: "#00FF00" });
				l8 = 1;
			},
			function(){
			$("#l8").css({ color: "#000", background: "#999999"});
				l8 = 0;
			}); 
		$("#m8").toggle(function (){
            $("#m8").css({ color: "#FFFFFF", background: "#00FF00" });
				m8 = 1;
			},
			function(){
			$("#m8").css({ color: "#000", background: "#999999"});
				m8 = 0;
			}); 
		$("#x8").toggle(function (){
            $("#x8").css({ color: "#FFFFFF", background: "#00FF00" });
				x8 = 1;
			},
			function(){
			$("#x8").css({ color: "#000", background: "#999999"});
				x8 = 0;
			}); 
		$("#j8").toggle(function (){
            $("#j8").css({ color: "#FFFFFF", background: "#00FF00" });
				j8 = 1;
			},
			function(){
			$("#j8").css({ color: "#000", background: "#999999"});
				j8 = 0;
			}); 
		$("#v8").toggle(function (){
            $("#v8").css({ color: "#FFFFFF", background: "#00FF00" });
				v8 = 1;
			},
			function(){
			$("#v8").css({ color: "#000", background: "#999999"});
				v8 = 0;
			});
		$("#s8").toggle(function (){
            $("#s8").css({ color: "#FFFFFF", background: "#00FF00" });
				s8 = 1;
			},
			function(){
			$("#s8").css({ color: "#000", background: "#999999"});
				s8 = 0;
			});
		$("#d8").toggle(function (){
            $("#d8").css({ color: "#FFFFFF", background: "#00FF00" });
				d8 = 1;
			},
			function(){
			$("#d8").css({ color: "#000", background: "#999999"});
				d8 = 0;
			});



		$("#l9").toggle(function (){
            $("#l9").css({ color: "#FFFFFF", background: "#00FF00" });
				l9 = 1;
			},
			function(){
			$("#l9").css({ color: "#000", background: "#999999"});
				l9 = 0;
			}); 
		$("#m9").toggle(function (){
            $("#m9").css({ color: "#FFFFFF", background: "#00FF00" });
				m9 = 1;
			},
			function(){
			$("#m9").css({ color: "#000", background: "#999999"});
				m9 = 0;
			}); 
		$("#x9").toggle(function (){
            $("#x9").css({ color: "#FFFFFF", background: "#00FF00" });
				x9 = 1;
			},
			function(){
			$("#x9").css({ color: "#000", background: "#999999"});
				x9 = 0;
			}); 
		$("#j9").toggle(function (){
            $("#j9").css({ color: "#FFFFFF", background: "#00FF00" });
				j9 = 1;
			},
			function(){
			$("#j9").css({ color: "#000", background: "#999999"});
				j9 = 0;
			}); 
		$("#v9").toggle(function (){
            $("#v9").css({ color: "#FFFFFF", background: "#00FF00" });
				v9 = 1;
			},
			function(){
			$("#v9").css({ color: "#000", background: "#999999"});
				v9 = 0;
			});
		$("#s9").toggle(function (){
            $("#s9").css({ color: "#FFFFFF", background: "#00FF00" });
				s9 = 1;
			},
			function(){
			$("#s9").css({ color: "#000", background: "#999999"});
				s9 = 0;
			});
		$("#d9").toggle(function (){
            $("#d9").css({ color: "#FFFFFF", background: "#00FF00" });
				d9 = 1;
			},
			function(){
			$("#d9").css({ color: "#000", background: "#999999"});
				d9 = 0;
			});



		$("#l10").toggle(function (){
            $("#l10").css({ color: "#FFFFFF", background: "#00FF00" });
				l10 = 1;
			},
			function(){
			$("#l10").css({ color: "#000", background: "#999999"});
				l10 = 0;
			}); 
		$("#m10").toggle(function (){
            $("#m10").css({ color: "#FFFFFF", background: "#00FF00" });
				m10 = 1;
			},
			function(){
			$("#m10").css({ color: "#000", background: "#999999"});
				m10 = 0;
			}); 
		$("#x10").toggle(function (){
            $("#x10").css({ color: "#FFFFFF", background: "#00FF00" });
				x10 = 1;
			},
			function(){
			$("#x10").css({ color: "#000", background: "#999999"});
				x10 = 0;
			}); 
		$("#j10").toggle(function (){
            $("#j10").css({ color: "#FFFFFF", background: "#00FF00" });
				j10 = 1;
			},
			function(){
			$("#j10").css({ color: "#000", background: "#999999"});
				j10 = 0;
			}); 
		$("#v10").toggle(function (){
            $("#v10").css({ color: "#FFFFFF", background: "#00FF00" });
				v10 = 1;
			},
			function(){
			$("#v10").css({ color: "#000", background: "#999999"});
				v10 = 0;
			});
		$("#s10").toggle(function (){
            $("#s10").css({ color: "#FFFFFF", background: "#00FF00" });
				s10 = 1;
			},
			function(){
			$("#s10").css({ color: "#000", background: "#999999"});
				s10 = 0;
			});
		$("#d10").toggle(function (){
            $("#d10").css({ color: "#FFFFFF", background: "#00FF00" });
				d10 = 1;
			},
			function(){
			$("#d10").css({ color: "#000", background: "#999999"});
				d10 = 0;
			});



		$("#l11").toggle(function (){
            $("#l11").css({ color: "#FFFFFF", background: "#00FF00" });
				l11 = 1;
			},
			function(){
			$("#l11").css({ color: "#000", background: "#999999"});
				l11 = 0;
			}); 
		$("#m11").toggle(function (){
            $("#m11").css({ color: "#FFFFFF", background: "#00FF00" });
				m11 = 1;
			},
			function(){
			$("#m11").css({ color: "#000", background: "#999999"});
				m11 = 0;
			}); 
		$("#x11").toggle(function (){
            $("#x11").css({ color: "#FFFFFF", background: "#00FF00" });
				x11 = 1;
			},
			function(){
			$("#x11").css({ color: "#000", background: "#999999"});
				x11 = 0;
			}); 
		$("#j11").toggle(function (){
            $("#j11").css({ color: "#FFFFFF", background: "#00FF00" });
				j11 = 1;
			},
			function(){
			$("#j11").css({ color: "#000", background: "#999999"});
				j11 = 0;
			}); 
		$("#v11").toggle(function (){
            $("#v11").css({ color: "#FFFFFF", background: "#00FF00" });
				v11 = 1;
			},
			function(){
			$("#v11").css({ color: "#000", background: "#999999"});
				v11 = 0;
			});
		$("#s11").toggle(function (){
            $("#s11").css({ color: "#FFFFFF", background: "#00FF00" });
				s11 = 1;
			},
			function(){
			$("#s11").css({ color: "#000", background: "#999999"});
				s11 = 0;
			});
		$("#d11").toggle(function (){
            $("#d11").css({ color: "#FFFFFF", background: "#00FF00" });
				d11 = 1;
			},
			function(){
			$("#d11").css({ color: "#000", background: "#999999"});
				d11 = 0;
			});



		$("#l12").toggle(function (){
            $("#l12").css({ color: "#FFFFFF", background: "#00FF00" });
				l12 = 1;
			},
			function(){
			$("#l12").css({ color: "#000", background: "#999999"});
				l12 = 0;
			}); 
		$("#m12").toggle(function (){
            $("#m12").css({ color: "#FFFFFF", background: "#00FF00" });
				m12 = 1;
			},
			function(){
			$("#m12").css({ color: "#000", background: "#999999"});
				m12 = 0;
			}); 
		$("#x12").toggle(function (){
            $("#x12").css({ color: "#FFFFFF", background: "#00FF00" });
				x12 = 1;
			},
			function(){
			$("#x12").css({ color: "#000", background: "#999999"});
				x12 = 0;
			}); 
		$("#j12").toggle(function (){
            $("#j12").css({ color: "#FFFFFF", background: "#00FF00" });
				j12 = 1;
			},
			function(){
			$("#j12").css({ color: "#000", background: "#999999"});
				j12 = 0;
			}); 
		$("#v12").toggle(function (){
            $("#v12").css({ color: "#FFFFFF", background: "#00FF00" });
				v12 = 1;
			},
			function(){
			$("#v12").css({ color: "#000", background: "#999999"});
				v12 = 0;
			});
		$("#s12").toggle(function (){
            $("#s12").css({ color: "#FFFFFF", background: "#00FF00" });
				s12 = 1;
			},
			function(){
			$("#s12").css({ color: "#000", background: "#999999"});
				s12 = 0;
			});
		$("#d12").toggle(function (){
            $("#d12").css({ color: "#FFFFFF", background: "#00FF00" });
				d12 = 1;
			},
			function(){
			$("#d12").css({ color: "#000", background: "#999999"});
				d12 = 0;
			});



		$("#l13").toggle(function (){
            $("#l13").css({ color: "#FFFFFF", background: "#00FF00" });
				l13 = 1;
			},
			function(){
			$("#l13").css({ color: "#000", background: "#999999"});
				l13 = 0;
			}); 
		$("#m13").toggle(function (){
            $("#m13").css({ color: "#FFFFFF", background: "#00FF00" });
				m13 = 1;
			},
			function(){
			$("#m13").css({ color: "#000", background: "#999999"});
				m13 = 0;
			}); 
		$("#x13").toggle(function (){
            $("#x13").css({ color: "#FFFFFF", background: "#00FF00" });
				x13 = 1;
			},
			function(){
			$("#x13").css({ color: "#000", background: "#999999"});
				x13 = 0;
			}); 
		$("#j13").toggle(function (){
            $("#j13").css({ color: "#FFFFFF", background: "#00FF00" });
				j13 = 1;
			},
			function(){
			$("#j13").css({ color: "#000", background: "#999999"});
				j13 = 0;
			}); 
		$("#v13").toggle(function (){
            $("#v13").css({ color: "#FFFFFF", background: "#00FF00" });
				v13 = 1;
			},
			function(){
			$("#v13").css({ color: "#000", background: "#999999"});
				v13 = 0;
			});
		$("#s13").toggle(function (){
            $("#s13").css({ color: "#FFFFFF", background: "#00FF00" });
				s13 = 1;
			},
			function(){
			$("#s13").css({ color: "#000", background: "#999999"});
				s13 = 0;
			});
		$("#d13").toggle(function (){
            $("#d13").css({ color: "#FFFFFF", background: "#00FF00" });
				d13 = 1;
			},
			function(){
			$("#d13").css({ color: "#000", background: "#999999"});
				d13 = 0;
			});




		$("#l14").toggle(function (){
            $("#l14").css({ color: "#FFFFFF", background: "#00FF00" });
				l14 = 1;
			},
			function(){
			$("#l14").css({ color: "#000", background: "#999999"});
				l14 = 0;
			}); 
		$("#m14").toggle(function (){
            $("#m14").css({ color: "#FFFFFF", background: "#00FF00" });
				m14 = 1;
			},
			function(){
			$("#m14").css({ color: "#000", background: "#999999"});
				m14 = 0;
			}); 
		$("#x14").toggle(function (){
            $("#x14").css({ color: "#FFFFFF", background: "#00FF00" });
				x14 = 1;
			},
			function(){
			$("#x14").css({ color: "#000", background: "#999999"});
				x14 = 0;
			}); 
		$("#j14").toggle(function (){
            $("#j14").css({ color: "#FFFFFF", background: "#00FF00" });
				j14 = 1;
			},
			function(){
			$("#j14").css({ color: "#000", background: "#999999"});
				j14 = 0;
			}); 
		$("#v14").toggle(function (){
            $("#v14").css({ color: "#FFFFFF", background: "#00FF00" });
				v14 = 1;
			},
			function(){
			$("#v14").css({ color: "#000", background: "#999999"});
				v14 = 0;
			});
		$("#s14").toggle(function (){
            $("#s14").css({ color: "#FFFFFF", background: "#00FF00" });
				s14 = 1;
			},
			function(){
			$("#s14").css({ color: "#000", background: "#999999"});
				s14 = 0;
			});
		$("#d14").toggle(function (){
            $("#d14").css({ color: "#FFFFFF", background: "#00FF00" });
				d14 = 1;
			},
			function(){
			$("#d14").css({ color: "#000", background: "#999999"});
				d14 = 0;
			});



		$("#l15").toggle(function (){
            $("#l15").css({ color: "#FFFFFF", background: "#00FF00" });
				l15 = 1;
			},
			function(){
			$("#l15").css({ color: "#000", background: "#999999"});
				l15 = 0;
			}); 
		$("#m15").toggle(function (){
            $("#m15").css({ color: "#FFFFFF", background: "#00FF00" });
				m15 = 1;
			},
			function(){
			$("#m15").css({ color: "#000", background: "#999999"});
				m15 = 0;
			}); 
		$("#x15").toggle(function (){
            $("#x15").css({ color: "#FFFFFF", background: "#00FF00" });
				x15 = 1;
			},
			function(){
			$("#x15").css({ color: "#000", background: "#999999"});
				x15 = 0;
			}); 
		$("#j15").toggle(function (){
            $("#j15").css({ color: "#FFFFFF", background: "#00FF00" });
				j15 = 1;
			},
			function(){
			$("#j15").css({ color: "#000", background: "#999999"});
				j15 = 0;
			}); 
		$("#v15").toggle(function (){
            $("#v15").css({ color: "#FFFFFF", background: "#00FF00" });
				v15 = 1;
			},
			function(){
			$("#v15").css({ color: "#000", background: "#999999"});
				v15 = 0;
			});
		$("#s15").toggle(function (){
            $("#s15").css({ color: "#FFFFFF", background: "#00FF00" });
				s15 = 1;
			},
			function(){
			$("#s15").css({ color: "#000", background: "#999999"});
				s15 = 0;
			});
		$("#d15").toggle(function (){
            $("#d15").css({ color: "#FFFFFF", background: "#00FF00" });
				d15 = 1;
			},
			function(){
			$("#d15").css({ color: "#000", background: "#999999"});
				d15 = 0;
			});



		$("#l16").toggle(function (){
            $("#l16").css({ color: "#FFFFFF", background: "#00FF00" });
				l16 = 1;
			},
			function(){
			$("#l16").css({ color: "#000", background: "#999999"});
				l16 = 0;
			}); 
		$("#m16").toggle(function (){
            $("#m16").css({ color: "#FFFFFF", background: "#00FF00" });
				m16 = 1;
			},
			function(){
			$("#m16").css({ color: "#000", background: "#999999"});
				m16 = 0;
			}); 
		$("#x16").toggle(function (){
            $("#x16").css({ color: "#FFFFFF", background: "#00FF00" });
				x16 = 1;
			},
			function(){
			$("#x16").css({ color: "#000", background: "#999999"});
				x16 = 0;
			}); 
		$("#j16").toggle(function (){
            $("#j16").css({ color: "#FFFFFF", background: "#00FF00" });
				j16 = 1;
			},
			function(){
			$("#j16").css({ color: "#000", background: "#999999"});
				j16 = 0;
			}); 
		$("#v16").toggle(function (){
            $("#v16").css({ color: "#FFFFFF", background: "#00FF00" });
				v16 = 1;
			},
			function(){
			$("#v16").css({ color: "#000", background: "#999999"});
				v16 = 0;
			});
		$("#s16").toggle(function (){
            $("#s16").css({ color: "#FFFFFF", background: "#00FF00" });
				s16 = 1;
			},
			function(){
			$("#s16").css({ color: "#000", background: "#999999"});
				s16 = 0;
			});
		$("#d16").toggle(function (){
            $("#d16").css({ color: "#FFFFFF", background: "#00FF00" });
				d16 = 1;
			},
			function(){
			$("#d16").css({ color: "#000", background: "#999999"});
				d16 = 0;
			});



		$("#l17").toggle(function (){
            $("#l17").css({ color: "#FFFFFF", background: "#00FF00" });
				l17 = 1;
			},
			function(){
			$("#l17").css({ color: "#000", background: "#999999"});
				l17 = 0;
			}); 
		$("#m17").toggle(function (){
            $("#m17").css({ color: "#FFFFFF", background: "#00FF00" });
				m17 = 1;
			},
			function(){
			$("#m17").css({ color: "#000", background: "#999999"});
				m17 = 0;
			}); 
		$("#x17").toggle(function (){
            $("#x17").css({ color: "#FFFFFF", background: "#00FF00" });
				x17 = 1;
			},
			function(){
			$("#x17").css({ color: "#000", background: "#999999"});
				x17 = 0;
			}); 
		$("#j17").toggle(function (){
            $("#j17").css({ color: "#FFFFFF", background: "#00FF00" });
				j17 = 1;
			},
			function(){
			$("#j17").css({ color: "#000", background: "#999999"});
				j17 = 0;
			}); 
		$("#v17").toggle(function (){
            $("#v17").css({ color: "#FFFFFF", background: "#00FF00" });
				v17 = 1;
			},
			function(){
			$("#v17").css({ color: "#000", background: "#999999"});
				v17 = 0;
			});
		$("#s17").toggle(function (){
            $("#s17").css({ color: "#FFFFFF", background: "#00FF00" });
				s17 = 1;
			},
			function(){
			$("#s17").css({ color: "#000", background: "#999999"});
				s17 = 0;
			});
		$("#d17").toggle(function (){
            $("#d17").css({ color: "#FFFFFF", background: "#00FF00" });
				d17 = 1;
			},
			function(){
			$("#d17").css({ color: "#000", background: "#999999"});
				d17 = 0;
			});



		$("#l18").toggle(function (){
            $("#l18").css({ color: "#FFFFFF", background: "#00FF00" });
				l18 = 1;
			},
			function(){
			$("#l18").css({ color: "#000", background: "#999999"});
				l18 = 0;
			}); 
		$("#m18").toggle(function (){
            $("#m18").css({ color: "#FFFFFF", background: "#00FF00" });
				m18 = 1;
			},
			function(){
			$("#m18").css({ color: "#000", background: "#999999"});
				m18 = 0;
			}); 
		$("#x18").toggle(function (){
            $("#x18").css({ color: "#FFFFFF", background: "#00FF00" });
				x18 = 1;
			},
			function(){
			$("#x18").css({ color: "#000", background: "#999999"});
				x18 = 0;
			}); 
		$("#j18").toggle(function (){
            $("#j18").css({ color: "#FFFFFF", background: "#00FF00" });
				j18 = 1;
			},
			function(){
			$("#j18").css({ color: "#000", background: "#999999"});
				j18 = 0;
			}); 
		$("#v18").toggle(function (){
            $("#v18").css({ color: "#FFFFFF", background: "#00FF00" });
				v18 = 1;
			},
			function(){
			$("#v18").css({ color: "#000", background: "#999999"});
				v18 = 0;
			});
		$("#s18").toggle(function (){
            $("#s18").css({ color: "#FFFFFF", background: "#00FF00" });
				s18 = 1;
			},
			function(){
			$("#s18").css({ color: "#000", background: "#999999"});
				s18 = 0;
			});
		$("#d18").toggle(function (){
            $("#d18").css({ color: "#FFFFFF", background: "#00FF00" });
				d18 = 1;
			},
			function(){
			$("#d18").css({ color: "#000", background: "#999999"});
				d18 = 0;
			});




		$("#l19").toggle(function (){
            $("#l19").css({ color: "#FFFFFF", background: "#00FF00" });
				l19 = 1;
			},
			function(){
			$("#l19").css({ color: "#000", background: "#999999"});
				l19 = 0;
			}); 
		$("#m19").toggle(function (){
            $("#m19").css({ color: "#FFFFFF", background: "#00FF00" });
				m19 = 1;
			},
			function(){
			$("#m19").css({ color: "#000", background: "#999999"});
				m19 = 0;
			}); 
		$("#x19").toggle(function (){
            $("#x19").css({ color: "#FFFFFF", background: "#00FF00" });
				x19 = 1;
			},
			function(){
			$("#x19").css({ color: "#000", background: "#999999"});
				x19 = 0;
			}); 
		$("#j19").toggle(function (){
            $("#j19").css({ color: "#FFFFFF", background: "#00FF00" });
				j19 = 1;
			},
			function(){
			$("#j19").css({ color: "#000", background: "#999999"});
				j19 = 0;
			}); 
		$("#v19").toggle(function (){
            $("#v19").css({ color: "#FFFFFF", background: "#00FF00" });
				v19 = 1;
			},
			function(){
			$("#v19").css({ color: "#000", background: "#999999"});
				v19 = 0;
			});
		$("#s19").toggle(function (){
            $("#s19").css({ color: "#FFFFFF", background: "#00FF00" });
				s19 = 1;
			},
			function(){
			$("#s19").css({ color: "#000", background: "#999999"});
				s19 = 0;
			});
		$("#d19").toggle(function (){
            $("#d19").css({ color: "#FFFFFF", background: "#00FF00" });
				d19 = 1;
			},
			function(){
			$("#d19").css({ color: "#000", background: "#999999"});
				d19 = 0;
			});



		$("#l20").toggle(function (){
            $("#l20").css({ color: "#FFFFFF", background: "#00FF00" });
				l20 = 1;
			},
			function(){
			$("#l20").css({ color: "#000", background: "#999999"});
				l20 = 0;
			}); 
		$("#m20").toggle(function (){
            $("#m20").css({ color: "#FFFFFF", background: "#00FF00" });
				m20 = 1;
			},
			function(){
			$("#m20").css({ color: "#000", background: "#999999"});
				m20 = 0;
			}); 
		$("#x20").toggle(function (){
            $("#x20").css({ color: "#FFFFFF", background: "#00FF00" });
				x20 = 1;
			},
			function(){
			$("#x20").css({ color: "#000", background: "#999999"});
				x20 = 0;
			}); 
		$("#j20").toggle(function (){
            $("#j20").css({ color: "#FFFFFF", background: "#00FF00" });
				j20 = 1;
			},
			function(){
			$("#j20").css({ color: "#000", background: "#999999"});
				j20 = 0;
			}); 
		$("#v20").toggle(function (){
            $("#v20").css({ color: "#FFFFFF", background: "#00FF00" });
				v20 = 1;
			},
			function(){
			$("#v20").css({ color: "#000", background: "#999999"});
				v20 = 0;
			});
		$("#s20").toggle(function (){
            $("#s20").css({ color: "#FFFFFF", background: "#00FF00" });
				s20 = 1;
			},
			function(){
			$("#s20").css({ color: "#000", background: "#999999"});
				s20 = 0;
			});
		$("#d20").toggle(function (){
            $("#d20").css({ color: "#FFFFFF", background: "#00FF00" });
				d20 = 1;
			},
			function(){
			$("#d20").css({ color: "#000", background: "#999999"});
				d20 = 0;
			});



		$("#l21").toggle(function (){
            $("#l21").css({ color: "#FFFFFF", background: "#00FF00" });
				l21 = 1;
			},
			function(){
			$("#l21").css({ color: "#000", background: "#999999"});
				l21 = 0;
			}); 
		$("#m21").toggle(function (){
            $("#m21").css({ color: "#FFFFFF", background: "#00FF00" });
				m21 = 1;
			},
			function(){
			$("#m21").css({ color: "#000", background: "#999999"});
				m21 = 0;
			}); 
		$("#x21").toggle(function (){
            $("#x21").css({ color: "#FFFFFF", background: "#00FF00" });
				x21 = 1;
			},
			function(){
			$("#x21").css({ color: "#000", background: "#999999"});
				x21 = 0;
			}); 
		$("#j21").toggle(function (){
            $("#j21").css({ color: "#FFFFFF", background: "#00FF00" });
				j21 = 1;
			},
			function(){
			$("#j21").css({ color: "#000", background: "#999999"});
				j21 = 0;
			}); 
		$("#v21").toggle(function (){
            $("#v21").css({ color: "#FFFFFF", background: "#00FF00" });
				v21 = 1;
			},
			function(){
			$("#v21").css({ color: "#000", background: "#999999"});
				v21 = 0;
			});
		$("#s21").toggle(function (){
            $("#s21").css({ color: "#FFFFFF", background: "#00FF00" });
				s21 = 1;
			},
			function(){
			$("#s21").css({ color: "#000", background: "#999999"});
				s21 = 0;
			});
		$("#d21").toggle(function (){
            $("#d21").css({ color: "#FFFFFF", background: "#00FF00" });
				d21 = 1;
			},
			function(){
			$("#d21").css({ color: "#000", background: "#999999"});
				d21 = 0;
			});



		$("#l22").toggle(function (){
            $("#l22").css({ color: "#FFFFFF", background: "#00FF00" });
				l22 = 1;
			},
			function(){
			$("#l22").css({ color: "#000", background: "#999999"});
				l22 = 0;
			}); 
		$("#m22").toggle(function (){
            $("#m22").css({ color: "#FFFFFF", background: "#00FF00" });
				m22 = 1;
			},
			function(){
			$("#m22").css({ color: "#000", background: "#999999"});
				m22 = 0;
			}); 
		$("#x22").toggle(function (){
            $("#x22").css({ color: "#FFFFFF", background: "#00FF00" });
				x22 = 1;
			},
			function(){
			$("#x22").css({ color: "#000", background: "#999999"});
				x22 = 0;
			}); 
		$("#j22").toggle(function (){
            $("#j22").css({ color: "#FFFFFF", background: "#00FF00" });
				j22 = 1;
			},
			function(){
			$("#j22").css({ color: "#000", background: "#999999"});
				j22 = 0;
			}); 
		$("#v22").toggle(function (){
            $("#v22").css({ color: "#FFFFFF", background: "#00FF00" });
				v22 = 1;
			},
			function(){
			$("#v22").css({ color: "#000", background: "#999999"});
				v22 = 0;
			});
		$("#s22").toggle(function (){
            $("#s22").css({ color: "#FFFFFF", background: "#00FF00" });
				s22 = 1;
			},
			function(){
			$("#s22").css({ color: "#000", background: "#999999"});
				s22 = 0;
			});
		$("#d22").toggle(function (){
            $("#d22").css({ color: "#FFFFFF", background: "#00FF00" });
				d22 = 1;
			},
			function(){
			$("#d22").css({ color: "#000", background: "#999999"});
				d22 = 0;
			});

		$("#prueba").click(function enviar_variables(){
  			$.post("tutorActualizaHorario.php",{
  				l6:l6,
				l7:l7,
				l8:l8,
				l9:l9,
				l10:l10,
				l11:l11,
				l12:l12,
				l13:l13,
				l14:l14,
				l15:l15,
				l16:l16,
				l17:l17,
				l18:l18,
				l19:l19,
				l20:l20,
				l21:l21,
				l22:l22,
				m6:m6,
				m7:m7,
				m8:m8,
				m9:m9,
				m10:m10,
				m11:m11,
				m12:m12,
				m13:m13,
				m14:m14,
				m15:m15,
				m16:m16,
				m17:m17,
				m18:m18,
				m19:m19,
				m20:m20,
				m21:m21,
				m22:m22,
				x6:x6,
				x7:x7,
				x8:x8,
				x9:x9,
				x10:x10,
				x11:x11,
				x12:x12,
				x13:x13,
				x14:x14,
				x15:x15,
				x16:x16,
				x17:x17,
				x18:x18,
				x19:x19,
				x20:x20,
				x21:x21,
				x22:x22,
				j6:j6,
				j7:j7,
				j8:j8,
				j9:j9,
				j10:j10,
				j11:j11,
				j12:j12,
				j13:j13,
				j14:j14,
				j15:j15,
				j16:j16,
				j17:j17,
				j18:j18,
				j19:j19,
				j20:j20,
				j21:j21,
				j22:j22,
				v6:v6,
				v7:v7,
				v8:v8,
				v9:v9,
				v10:v10,
				v11:v11,
				v12:v12,
				v13:v13,
				v14:v14,
				v15:v15,
				v16:v16,
				v17:v17,
				v18:v18,
				v19:v19,
				v20:v20,
				v21:v21,
				v22:v22,
				s6:s6,
				s7:s7,
				s8:s8,
				s9:s9,
				s10:s10,
				s11:s11,
				s12:s12,
				s13:s13,
				s14:s14,
				s15:s15,
				s16:s16,
				s17:s17,
				s18:s18,
				s19:s19,
				s20:s20,
				s21:s21,
				s22:s22,
				d6:d6,
				d7:d7,
				d8:d8,
				d9:d9,
				d10:d10,
				d11:d11,
				d12:d12,
				d13:d13,
				d14:d14,
				d15:d15,
				d16:d16,
				d17:d17,
				d18:d18,
				d19:d19,
				d20:d20,
				d21:d21,
				d22:d22,
  			},
  			function(respuesta){
  			alert(respuesta);
  			});
		});

    });